﻿using Light.Framework.Contract;
using Light.Weixin.Model;

namespace Light.Weixin.Contract
{
    /// <summary>
    /// 自动回复消息组件
    /// </summary>
    public interface IWxAnswerComponent : IComponent<WxAnswer>, IDataImport
    {
        /// <summary>
        /// 获取能识别的消息回复内容
        /// </summary>
        /// <param name="msg">消息内容，包含 ToUserName、Content</param>
        /// <returns></returns>
        string GetAnswer(WxMsg msg);

        /// <summary>
        /// 获取未被识别的消息回复内容
        /// </summary>
        /// <param name="originalId"></param>
        /// <returns></returns>
        string GetAnswerDefault(string originalId);
    }
}
